#include <iostream>

class Solution
{
public:
    bool isPalindrome(int x)
    {
        // write...
    }
};